<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <link rel="stylesheet" href="resources/bootstrap/css/bootstrap.css" type="text/css"></link>
    <link rel="stylesheet" href="resources/bootstrap/css/bootstrap-theme.css" type="text/css"></link>
    <!-- 引入 jquery -->
    <script type="text/javascript" src="resources/bootstrap/js/jquery-1.9.1.js"></script>
    <script src="resources/bootstrap/js/bootstrap.js" type="text/javascript"></script>

    <link rel="stylesheet" href="resources/bootstrap/datetimepicker/css/bootstrap-datetimepicker.min.css">
    <script src="resources/bootstrap/datetimepicker/js/bootstrap-datetimepicker.js"></script>
    <script src="resources/bootstrap/datetimepicker/js/bootstrap-datetimepicker.zh-CN.js"></script>

    <script>
        $(function () {
            //详细 配置 https://www.jianshu.com/p/663f2a86dd22
            $("[flag='datetime']").datetimepicker({
                defaultTime: "2014-04-04",
                defaultDate:  "2014/04/04" ,
                language: 'zh-CN',//显示中文
                format: 'yyyy-mm-dd HH:ii',//显示格式
                //minView: "month",//设置只显示到月份
                initialDate: new Date() ,//初始化当前日期
                autoclose: true,//选中自动关闭
                todayBtn: true//显示今日按钮

            });


            $("#QJLX").selectpicker({
                noneSelectedText : '请选择'//默认显示内容
            });

            var select = $("#QJLX");
            select.append("<option value='1'>香蕉</option>");
            select.append("<option value='2'>苹果</option>");
            select.append("<option value='3'>橘子</option>");
            select.append("<option value='4'>石榴</option>");
            select.append("<option value='5'>棒棒糖</option>");
            select.append("<option value='6'>桃子</option>");
            select.append("<option value='7'>陶子</option>");
        });
    </script>

</head>
<body>


<form class="form-horizontal" role="form" id="ZZYFORM">

    <div class="form-group">
        <label for="QJLX">请假类型</label>
        <select class="form-control" id="QJLX" name="QJLX"></select>
    </div>

</form>



</body>
</html>